﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class SearchControl : WikiUserControlBase
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public string SearchText
    {
        get { return this.TextBoxSearchText.Text; }
        set { this.TextBoxSearchText.Text = value; }
    }
    protected void ButtonSearch_Click(object sender, EventArgs e)
    {
        this.TextBoxSearchText.Text = this.TextBoxSearchText.Text.Trim();
        if (this.TextBoxSearchText.Text.Length == 0)
            return;
        Response.Redirect("Search.aspx?" + this.TextBoxSearchText.Text);
    }
}